package com.group2.bankonline.service;

import com.group2.bankonline.pojo.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group2.bankonline.pojo.Transrecord;

import java.math.BigDecimal;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author syf
 * @since 2024-07-11
 */

public interface IAccountService extends IService<Account> {
    public int updateAccountBalance(int aid, BigDecimal balance);
    public Account getByIdAndPassword(int id,String password);
    public Integer getByAccountName(String name);
    public int selectTelById(int id);

    public Account bindAccount(Account account);

    boolean havepid(int pid);

    public List<Account> getaccountname(int pid);

    int getpid(String accountname);

    public BigDecimal getBalance(String accountname);

    public void accountchange(BigDecimal newbalance,String accountname);

    public String getpwd(String accountname);

    public int getid(String accountname);

}
